<!doctype html>



  


<html class="theme-next muse use-motion">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />












  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  
    
      
    

    
  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Microsoft YaHei:300,300italic,400,400italic,700,700italic|consolas:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.0.2" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="HongqinMa, Hiraku, web前端, web全栈, javascript, html, css, nodejs" />








  <link rel="shortcut icon" type="image/x-icon" href="http://ofy7k3v4s.bkt.clouddn.com/mylogo.png?v=5.0.2" />






<meta name="description" content="Spell at all costs， to rush you in the future.">
<meta property="og:type" content="website">
<meta property="og:title" content="HongqinMa' Blog">
<meta property="og:url" content="https://hongqinma.github.io/page/4/index.html">
<meta property="og:site_name" content="HongqinMa' Blog">
<meta property="og:description" content="Spell at all costs， to rush you in the future.">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="HongqinMa' Blog">
<meta name="twitter:description" content="Spell at all costs， to rush you in the future.">



<script type="text/javascript" id="hexo.configuration">
  var NexT = window.NexT || {};
  var CONFIG = {
    scheme: 'Muse',
    sidebar: {"position":"left","display":"post"},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '6347850919329138000',
      author: 'Hiraku'
    }
  };
</script>




  <link rel="canonical" href="https://hongqinma.github.io/page/4/"/>


  <title> HongqinMa' Blog </title>
</head>

<body itemscope itemtype="//schema.org/WebPage" lang="en">

  



  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?10010323";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>








  
  
    
  

  <div class="container one-collumn sidebar-position-left 
   page-home 
 ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="//schema.org/WPHeader">
      <div class="header-inner"><div class="site-meta custom-logo">
  
    <div class="site-meta-headline">
      <a>
        <img class="custom-logo-image" src="http://ofy7k3v4s.bkt.clouddn.com/photo.jpg"
             alt="HongqinMa' Blog"/>
      </a>
    </div>
  

  <div class="custom-logo-site-title">
    <a href="/"  class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <span class="site-title">HongqinMa' Blog</span>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>
  <p class="site-subtitle">Spell at all costs， to rush you in the future。</p>
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            Home
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            Categories
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            About
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            Archives
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            Tags
          </a>
        </li>
      

      
    </ul>
  

  
</nav>

 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            
  <section id="posts" class="posts-expand">
    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/08/01/e004-面试题库-HTML5、CSS3/" itemprop="url">
                  题库-HTML5、CSS3
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2015-08-01T22:29:05+08:00" content="2015-08-01">
              2015-08-01
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/经典题库/" itemprop="url" rel="index">
                    <span itemprop="name">经典题库</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/08/01/e004-面试题库-HTML5、CSS3/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/08/01/e004-面试题库-HTML5、CSS3/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          1&#x3001;CSS3&#x6709;&#x54EA;&#x4E9B;&#x65B0;&#x7279;&#x6027;
CSS3&#x5B9E;&#x73B0;&#x5706;&#x89D2;&#xFF08;border-radius&#xFF09;&#xFF0C;&#x9634;&#x5F71;&#xFF08;box-shadow&#xFF09;&#xFF0C;&#x5BF9;&#x6587;&#x5B57;&#x52A0;&#x7279;&#x6548;&#xFF08;text-shadow&#x3001;&#xFF09;&#xFF0C;&#x7EBF;&#x6027;&#x6E10;&#x53D8;&#xFF08;gradient&#xFF09;&#xFF0C;&#x65CB;&#x8F6C;&#xFF08;transform&#xFF09;transform:rotate(9deg) scale(0.85,0.90) translate(0px,-30px) skew(-9deg,0deg);// &#x65CB;&#x8F6C;,&#x7F29;&#x653E;,&#x5B9A;&#x4F4D;,&#x503E;&#x659C;&#x589E;&#x52A0;&#x4E86;&#x66F4;&#x591A;&#x7684;CSS&#x9009;&#x62E9;&#x5668;&#x591A;&#x80CC;&#x666F;rgba&#x3001;hlsa&#x5728;CSS3&#x4E2D;&#x552F;&#x4E00;&#x5F15;&#x5165;&#x7684;&#x4F2A;&#x5143;&#x7D20;&#x662F; ::selection.&#x5A92;&#x4F53;&#x67E5;&#x8BE2;&#xFF0C;&#x591A;&#x680F;&#x5E03;&#x5C40;border-image

2&#x3001;html5&#x6709;&#x54EA;&#x4E9B;&#x65B0;&#x7279;&#x6027;&#x3001;&#x79FB;&#x9664;&#x4E86;&#x90A3;&#x4E9B;&#x5143;&#x7D20;&#xFF1F;
&#x5982;&#x4F55;&#x5904;&#x740
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2015/08/01/e004-面试题库-HTML5、CSS3/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/07/26/e003-面试题库-js-基础（下）/" itemprop="url">
                  题库-js 基础（下）
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2015-07-26T22:23:21+08:00" content="2015-07-26">
              2015-07-26
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/经典题库/" itemprop="url" rel="index">
                    <span itemprop="name">经典题库</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/07/26/e003-面试题库-js-基础（下）/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/07/26/e003-面试题库-js-基础（下）/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          &#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;&#x5199;&#x51FA;&#x7531;&#x5B57;&#x6BCD;&#x5F00;&#x5934;&#xFF0C;&#x5176;&#x4F59;&#x7531;&#x6570;&#x5B57;&#x3001;&#x5B57;&#x6BCD;&#x3001;&#x4E0B;&#x5212;&#x7EBF;&#x7EC4;&#x6210;&#x7684; 6~30 &#x7684;&#x5B57;&#x7B26;&#x4E32;^[a-zA-Z]{1}[\w]{5,29}$
&#x5199;&#x51FA;&#x6B63;&#x786E;&#x7684;&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;&#x5339;&#x914D;&#x56FA;&#x8BDD;&#x53F7;&#x533A;&#x53F7;3-4&#x4F4D;&#xFF0C;&#x7B2C;&#x4E00;&#x4F4D;&#x4E3A;0&#xFF0C;&#x4E2D;&#x6A2A;&#x7EBF;&#xFF0C;7-8&#x4F4D;&#x6570;&#x5B57;&#xFF0C;&#x4E2D;&#x6A2A;&#x7EBF;&#xFF0C;3-4&#x4F4D;&#x5206;&#x673A;&#x53F7;&#x683C;&#x5F0F;&#x7684;&#x56FA;&#x8BDD;&#x53F7;
^[0]\d{2,3}\-\d{7,8}\-\d{3,4}$
&#x8981;&#x6C42;&#x6700;&#x77ED;6&#x4F4D;&#x6570;&#xFF0C;&#x6700;&#x957F;20&#x4F4D;&#xFF0C;&#x963F;&#x62C9;&#x4F2F;&#x6570;&#x548C;&#x82F1;&#x6587;&#x5B57;&#x6BCD;&#xFF08;&#x4E0D;&#x533A;&#x5206;&#x5927;&#x5C0F;&#x5199;&#xFF09;&#x7EC4;&#x6210;^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z\d]{6,20}$
&#x8F93;&#x5
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2015/07/26/e003-面试题库-js-基础（下）/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/07/19/e002-面试题库-js-基础（上）/" itemprop="url">
                  题库-js 篇（上）
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2015-07-19T21:36:48+08:00" content="2015-07-19">
              2015-07-19
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/经典题库/" itemprop="url" rel="index">
                    <span itemprop="name">经典题库</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/07/19/e002-面试题库-js-基础（上）/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/07/19/e002-面试题库-js-基础（上）/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          1&#x3001;javascript &#x7684; typeof &#x8FD4;&#x56DE;&#x54EA;&#x4E9B;&#x6570;&#x636E;&#x7C7B;&#x578B;123456789alert(typeof [1, 2]); //&apos;object&apos;alert(typeof &apos;leipeng&apos;); //&apos;string&apos;var i = true; alert(typeof i); //&apos;boolean&apos;alert(typeof 1); //&apos;number&apos;var a; alert(typeof a); //&apos;undefined&apos;function a(){;};alert(typeof a) //&apos;function&apos;
2&#x3001;3 &#x79CD;&#x5F3A;&#x5236;&#x7C7B;&#x578B;&#x8F6C;&#x6362;&#x548C; 2 &#x79CD;&#x9690;&#x5F0F;&#x7C7B;&#x578B;&#x8F6C;&#x6362;
&#x5F3A;&#x5236;&#xFF08;parseInt(),parseFloat(),Number()&#xFF09;&#x9690;&#x5F0F;&#xFF08;== ,!!&#xFF09;

3&#x3001;split() &#x3001;join() &#x7684;&#x533A;&#x522B;&#x524D;&#x8005;&#x662F;&#x5C06;&#x5B57;&#x7B26;&#x4E32;&#x5207;&#x5272;&#x6210;&#x6570;&#x7EC4;&#x7684;&#x5F62;&#x5F0F;&#xFF0C;&#x540E;&#x8005;&#x662F;&#x5C06;&#x6570;&#x7EC4;&#x8F6C;&#x6362;&#x6210;&#x5B57;&#x7B26;&#x4E32;
4&#x3001;&#x6570;&#x7EC4;&#x65B9;&#x6CD5;pop()&#x3001;push()&#x3001;unshift()&#x300
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2015/07/19/e002-面试题库-js-基础（上）/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/07/12/e001-面试题库-HTML、CSS/" itemprop="url">
                  题库-HTML、CSS篇
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2015-07-12T22:21:28+08:00" content="2015-07-12">
              2015-07-12
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/经典题库/" itemprop="url" rel="index">
                    <span itemprop="name">经典题库</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/07/12/e001-面试题库-HTML、CSS/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/07/12/e001-面试题库-HTML、CSS/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          1&#x3001;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x5185;&#x6838;
IE: trident&#x5185;&#x6838;Firefox&#xFF1A;gecko&#x5185;&#x6838;Safari:webkit&#x5185;&#x6838;Opera:&#x4EE5;&#x524D;&#x662F;presto&#x5185;&#x6838;&#xFF0C;Opera&#x73B0;&#x5DF2;&#x6539;&#x7528;Google Chrome&#x7684;Blink&#x5185;&#x6838;Chrome:Blink(&#x57FA;&#x4E8E;webkit&#xFF0C;Google&#x4E0E;Opera Software&#x5171;&#x540C;&#x5F00;&#x53D1;)

2&#x3001;Doctype
&lt;!DOCTYPE&gt; &#x58F0;&#x660E;&#x4F4D;&#x4E8E;&#x6587;&#x6863;&#x4E2D;&#x7684;&#x6700;&#x524D;&#x9762;&#x7684;&#x4F4D;&#x7F6E;&#xFF0C;&#x5904;&#x4E8E;  &#x6807;&#x7B7E;&#x4E4B;&#x524D;&#x3002;&#x6B64;&#x6807;&#x7B7E;&#x53EF;&#x544A;&#x77E5;&#x6D4F;&#x89C8;&#x5668;&#x6587;&#x6863;&#x4F7F;&#x7528;&#x54EA;&#x79CD; HTML &#x6216; XHTML &#x89C4;&#x8303;&#x3002;&#x91CD;&#x70B9;&#xFF1A;&#x544A;&#x77E5;&#x6D4F;&#x89C8;&#x5668;&#x8BE5;&#x4EE5;&#x4F55;&#x79CD;&#x6A21;&#x5F0F;&#x6765;&#x6E32;&#x67D3;&#x6587;&#x6863;DOCTYPE&#x4E0D;&#x5B58;&#x5728;&#x6216;&#x683C;&#x5F0F;&#x4E0D;&#x6B63;&#x78
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2015/07/12/e001-面试题库-HTML、CSS/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/07/05/27-AngularJS-项目流程/" itemprop="url">
                  AngularJS 项目流程
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2015-07-05T19:50:50+08:00" content="2015-07-05">
              2015-07-05
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/AngularJs/" itemprop="url" rel="index">
                    <span itemprop="name">AngularJs</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/07/05/27-AngularJS-项目流程/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/07/05/27-AngularJS-项目流程/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          
&#x9879;&#x76EE;&#x6E90;&#x7801;&#x8C46;&#x74E3;&#x7535;&#x5F71;&#x5217;&#x8868;&#x5C0F;&#x9879;&#x76EE;&#x6E90;&#x7801;
&#x8C46;&#x74E3;&#x7535;&#x5F71;&#x5217;&#x8868;&#x9879;&#x76EE;&#x8BF4;&#x660E;
&#x4F7F;&#x7528; AngularJS + Bootstrap + Node.js &#x6784;&#x5EFA;&#x7684;&#x4E00;&#x4E2A;&#x7535;&#x5F71;&#x5217;&#x8868;&#x5C55;&#x793A;&#x5355;&#x9875;&#x5E94;&#x7528;

&#x542F;&#x52A8;&#x9879;&#x76EE;1$ nodemon add.js
&#x6216;&#x8005;&#xFF1A;
1$ node add.js
&#x8C46;&#x74E3;&#x5F00;&#x53D1;&#x63A5;&#x53E3; API
&#x6240;&#x6709;&#x7684;&#x63A5;&#x53E3;&#x5730;&#x5740;&#x90FD;&#x662F;&#x4EE5;&#xFF1A;http://api.douban.com/v2 &#x5F00;&#x5934;&#x7684;
&#x6B63;&#x5728;&#x70ED;&#x6620; http://api.douban.com/v2/movie/in_theaters
&#x5373;&#x5C06;&#x4E0A;&#x6620; http://api.douban.com/v2/movie/coming_soon
top250 http://api.douban.com/v2/movie/top250
search http://api.douban.com/v2/movie/search?q={text}
&#x7535;&#x5F71;&#x6761;&#x76EE;&#x63A5;&#x53E3;: http://api.douban.com/v2/movie/subject/:id


          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2015/07/05/27-AngularJS-项目流程/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/06/18/26-AngularJS-框架/" itemprop="url">
                  AngularJS 框架
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2015-06-18T21:59:18+08:00" content="2015-06-18">
              2015-06-18
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/AngularJs/" itemprop="url" rel="index">
                    <span itemprop="name">AngularJs</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/06/18/26-AngularJS-框架/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/06/18/26-AngularJS-框架/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          &#x5199;&#x5728;&#x6700;&#x524D;&#xFF1A;&#x7531;&#x4E8E; ng &#x7684;&#x8868;&#x8FBE;&#x5F0F;&#x548C;&#x535A;&#x5BA2;&#x6709;&#x51B2;&#x7A81;&#xFF0C;&#x6240;&#x4EE5;&#x9664;&#x4E86;&#x4EE3;&#x7801;&#x5757;&#x4E4B;&#x5916;&#x6240;&#x6709;&#x7684;&#x5927;&#x62EC;&#x53F7;&#x7ECF;&#x8FC7;&#x4E86; \ &#x8F6C;&#x4E49;&#xFF01;
Angular &#x4ECB;&#x7ECD;&#x4EC0;&#x4E48;&#x662F;&#x6846;&#x67B6;&#x548C;&#x5E93;&#x5E93;&#x662F;&#x7531;&#x5F00;&#x53D1;&#x4EBA;&#x5458;&#x4E3B;&#x52A8;&#x4F7F;&#x7528;&#x5E93;&#x91CC;&#x9762;&#x63D0;&#x4F9B;&#x7684; API&#xFF0C;&#x5B8C;&#x6210;&#x4EE3;&#x7801;&#x529F;&#x80FD;&#x903B;&#x8F91;
&#x6846;&#x67B6;&#x91CC;&#x9762;&#x63D0;&#x4F9B;&#x4E86;&#x5404;&#x79CD;&#x5404;&#x6837;&#x7684;&#x5E93;&#xFF0C;&#x8FD9;&#x4E9B;&#x5E93;&#x53EF;&#x4EE5;&#x8C03;&#x7528;&#x4F7F;&#x7528;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x7531;&#x6846;&#x67B6;&#x53BB;&#x8C03;&#x7528;&#x4F7F;&#x7528;
&#x4EC0;&#x4E48;&#x662F; AngularJS
&#x4E00;&#x6B3E;&#x975E;&#x5E38;&#x4F18;&#x79C0;&#x7684;&#x524D;&#x7AEF
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2015/06/18/26-AngularJS-框架/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/05/11/25-js-的模块化/" itemprop="url">
                  js 的模块化
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2015-05-11T18:40:02+08:00" content="2015-05-11">
              2015-05-11
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/JavaScript/" itemprop="url" rel="index">
                    <span itemprop="name">JavaScript</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/05/11/25-js-的模块化/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/05/11/25-js-的模块化/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          &#x5386;&#x53F2;&#x4E0A;&#xFF0C;JavaScript&#x4E00;&#x76F4;&#x6CA1;&#x6709;&#x6A21;&#x5757;&#xFF08;module&#xFF09;&#x4F53;&#x7CFB;&#xFF0C;&#x65E0;&#x6CD5;&#x5C06;&#x4E00;&#x4E2A;&#x5927;&#x7A0B;&#x5E8F;&#x62C6;&#x5206;&#x6210;&#x4E92;&#x76F8;&#x4F9D;&#x8D56;&#x7684;&#x5C0F;&#x6587;&#x4EF6;&#xFF0C;&#x518D;&#x7528;&#x7B80;&#x5355;&#x7684;&#x65B9;&#x6CD5;&#x62FC;&#x88C5;&#x8D77;&#x6765;&#x3002;&#x5176;&#x4ED6;&#x8BED;&#x8A00;&#x90FD;&#x6709;&#x8FD9;&#x9879;&#x529F;&#x80FD;&#xFF0C;&#x6BD4;&#x5982; Ruby &#x7684; require&#x3001;Python &#x7684; import &#xFF0C;&#x751A;&#x81F3;&#x5C31;&#x8FDE; CSS &#x90FD;&#x6709; @import &#xFF0C;c &#x8BED;&#x8A00;&#x4E2D;&#x7684; include&#xFF0C;&#x4F46;&#x662F; JavaScript &#x4EFB;&#x4F55;&#x8FD9;&#x65B9;&#x9762;&#x7684;&#x652F;&#x6301;&#x90FD;&#x6CA1;&#x6709;&#xFF0C;&#x8FD9;&#x5BF9;&#x5F00;&#x53D1;&#x5927;&#x578B;&#x7684;&#x3001;&#x590D;&#x6742;&#x7684;&#x9879;&#x76EE;&#x5F62;&#x6210;&#x4E86;&#x5DE8;&#x5927;&#x969C;&#x788D;&#x3002;
JavaScript &#x6A21;&#x5757;&#x
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2015/05/11/25-js-的模块化/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/04/03/t10-gulp-构建工具/" itemprop="url">
                  Gulp 构建工具
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2015-04-03T21:41:51+08:00" content="2015-04-03">
              2015-04-03
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/Gulp/" itemprop="url" rel="index">
                    <span itemprop="name">Gulp</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/04/03/t10-gulp-构建工具/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/04/03/t10-gulp-构建工具/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          &#x9879;&#x76EE;&#x6784;&#x5EFA;&#x662F;&#x6307;&#x9879;&#x76EE;&#x4E0A;&#x7EBF;&#x4E4B;&#x524D;&#x5BF9;&#x9879;&#x76EE;&#x6E90;&#x4EE3;&#x7801;&#x8FDB;&#x884C;&#x4E00;&#x7CFB;&#x5217;&#x5904;&#x7406;&#xFF0C;&#x4F7F;&#x5176;&#x4EE5;&#x6700;&#x4F73;&#x7684;&#x5F62;&#x5F0F;&#x8FD0;&#x884C;&#x4E8E;&#x7EBF;&#x4E0A;&#x670D;&#x52A1;&#x5668;&#x3002;&#x5E38;&#x89C1;&#x5904;&#x7406;&#x4EFB;&#x5305;&#x62EC;&#x4EE5;&#x4E0B;&#x51E0;&#x65B9;&#x9762;&#xFF1A;
1&#x3001;&#x6A21;&#x5757;&#x5316;&#x5F00;&#x53D1;&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x529F;&#x80FD;&#x7684;&#x590D;&#x7528;&#x5E76;&#x89E3;&#x51B3;&#x6A21;&#x5757;&#x95F4;&#x7684;&#x4F9D;&#x8D56;&#x5173;&#x7CFB;&#xFF0C;&#x4F46;&#x5E26;&#x6765;&#x597D;&#x5904;&#x7684;&#x540C;&#x65F6;&#x4E5F;&#x4F7F;&#x5F97;&#x529F;&#x80FD;&#x4EE3;&#x7801;&#x7684;&#x788E;&#x7247;&#x5316;&#xFF08;&#x82E5;&#x5E72;&#x6587;&#x4EF6;&#xFF09;&#x7A0B;&#x5EA6;&#x589E;&#x52A0;&#x3002;
2&#x3001;&#x4F7F;&#x7528;less&#x3001;sass&#x7B49;&#x9884;&#x5904;&#x7406;&#x5668;&#xFF0C;&#x5
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2015/04/03/t10-gulp-构建工具/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/03/22/24-PHP-基础/" itemprop="url">
                  PHP-基础
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2015-03-22T19:38:15+08:00" content="2015-03-22">
              2015-03-22
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/PHP/" itemprop="url" rel="index">
                    <span itemprop="name">PHP</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/03/22/24-PHP-基础/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/03/22/24-PHP-基础/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          php&#x57FA;&#x7840;&#x6587;&#x4EF6;&#x4EE5;.php&#x540E;&#x7F00;&#x7ED3;&#x5C3E;&#xFF0C;&#x6240;&#x6709;&#x7A0B;&#x5E8F;&#x5305;&#x542B;&#x5728; &lt;?php ** &#x8FD9;&#x91CC;&#x662F;&#x4EE3;&#x7801; ** ?&gt;  
&#x907F;&#x514D;&#x4F7F;&#x7528;&#x4E2D;&#x6587;&#x76EE;&#x5F55;&#x548C;&#x4E2D;&#x6587;&#x6587;&#x4EF6;&#x540D;&#xFF0C;php&#x9875;&#x9762;&#x65E0;&#x6CD5;&#x76F4;&#x63A5;&#x6253;&#x5F00;&#x9700;&#x8981;&#x8FD0;&#x884C;&#x5728;&#x670D;&#x52A1;&#x5668;&#x73AF;&#x5883;&#x5F53;&#x4E2D;&#x3002;
&#x914D;&#x7F6E; php &#x6587;&#x4EF6;&#xFF0C;&#x8BBF;&#x95EE; https &#x52A0;&#x5BC6;&#x7F51;&#x7AD9;&#x5982;&#x4F55;&#x627E;&#x5230;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF1A;
&#x5728;&#x540E;&#x7F00;&#x540D; .php &#x7684;&#x6587;&#x4EF6;&#x4E2D;&#x52A0;&#x4E0A;&#xFF1A;

phpinfo();
exit;

&#x6D4F;&#x89C8;&#x5668;&#x4E0B;&#x8BBF;&#x95EE;&#xFF1A;.php &#x540E;&#x7F00;&#x7684;&#x6587;&#x4EF6;
&#x627E;&#x5230;&#xFF1A;Loaded Configuration File&#x7684;&#x8DEF;&#x5F84;&#xFF0C;php.ini
&#x627E;&#x5230; opens
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2015/03/22/24-PHP-基础/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/02/19/HTML5知识体系/" itemprop="url">
                  HTML5知识体系
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2015-02-19T19:52:31+08:00" content="2015-02-19">
              2015-02-19
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/HTML5/" itemprop="url" rel="index">
                    <span itemprop="name">HTML5</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/02/19/HTML5知识体系/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/02/19/HTML5知识体系/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          &#x7B80;&#x4ECB;&#x3001;h5&#x8BED;&#x4E49;&#x5316;&#x6807;&#x7B7E;&#x3001;&#x7ECF;&#x5178;&#x5E03;&#x5C40;123&lt;!--[if lt IE 9]&gt;&lt;script src=&quot;js/html5shiv.min.js&quot;&gt;&lt;/script&gt;&lt;![endif]--&gt;

html&#x9AA8;&#x67B6;
&#x7ECF;&#x5178;&#x7F51;&#x9875;&#x5E03;&#x5C40;
&#x8BED;&#x4E49;&#x5316;&#x6807;&#x7B7E; header&#x3001;nav&#x3001;main&#x3001;session&#x3001;article&#x3001;aside&#x3001;figure&#x3001;footer&#x3001;mark&#x3001;progress&#x3001;hgroup(&#x5DF2;&#x5E9F;&#x5F03;)&#x3001;time&#x3001;details&#x3001;bdi&#x3001;command&#x3001;summary&#x3001;rp&#x3001;rt&#x3001;ruby
&#x517C;&#x5BB9;h5&#x6807;&#x7B7E;&#x7684;&#x63D2;&#x4EF6; html5shiv.min.js


&#x8868;&#x5355;
&#x8868;&#x5355;&#x7C7B;&#x578B; 
text
password
radio
checkbox 
button
submit
reset
image
file
hidden
email
color
url
number  &#x3001;search&#x3001;range  &#x3001;tel&#x3001;time&#x3001;date&#x3001;datetime&#x3001;week&#x3001;month&#x3001;datetime-local


&#x8868;&#x5355;&#x5143;&#x7D20;
&#x8868;&#x5355;&#x
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2015/02/19/HTML5知识体系/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
  </section>

  
  <nav class="pagination">
    <a class="extend prev" rel="prev" href="/page/3/"><i class="fa fa-angle-left"></i></a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/3/">3</a><span class="page-number current">4</span><a class="page-number" href="/page/5/">5</a><span class="space">&hellip;</span><a class="page-number" href="/page/7/">7</a><a class="extend next" rel="next" href="/page/5/"><i class="fa fa-angle-right"></i></a>
  </nav>



          </div>
          


          

        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      

      <section class="site-overview sidebar-panel  sidebar-panel-active ">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="//schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/images/photo.jpg"
               alt="Hongqin Ma" />
          <p class="site-author-name" itemprop="name">Hongqin Ma</p>
          <p class="site-description motion-element" itemprop="description">Spell at all costs， to rush you in the future. </p>
        </div>
        <nav class="site-state motion-element">
          <div class="site-state-item site-state-posts">
            <a href="/archives">
              <span class="site-state-item-count">68</span>
              <span class="site-state-item-name">posts</span>
            </a>
          </div>

          
            <div class="site-state-item site-state-categories">
              <a href="/categories">
                <span class="site-state-item-count">16</span>
                <span class="site-state-item-name">categories</span>
              </a>
            </div>
          

          
            <div class="site-state-item site-state-tags">
              <a href="/tags">
                <span class="site-state-item-count">57</span>
                <span class="site-state-item-name">tags</span>
              </a>
            </div>
          

        </nav>

        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/HongqinMa" target="_blank" title="GitHub">
                  
                    <i class="fa fa-fw fa-github"></i>
                  
                  GitHub
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="https://twitter.com/HongqinMa" target="_blank" title="Twitter">
                  
                    <i class="fa fa-fw fa-twitter"></i>
                  
                  Twitter
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="https://www.facebook.com/profile.php?id=100006581058735" target="_blank" title="Facebook">
                  
                    <i class="fa fa-fw fa-facebook"></i>
                  
                  Facebook
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://www.zhihu.com/people/HirakuMa" target="_blank" title="知乎">
                  
                    <i class="fa fa-fw fa-share-alt"></i>
                  
                  知乎
                </a>
              </span>
            
          
        </div>

        
        

        
        
          <div class="links-of-blogroll motion-element links-of-blogroll-inline">
            <div class="links-of-blogroll-title">
              <i class="fa  fa-fw fa-globe"></i>
              Links
            </div>
            <ul class="links-of-blogroll-list">
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.cnblogs.com/rubylouvre/" title="司徒正美" target="_blank">司徒正美</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.cnblogs.com/sanshi/" title="三生石上" target="_blank">三生石上</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.cnblogs.com/TomXu/" title="汤姆大叔" target="_blank">汤姆大叔</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://gold.xitu.io/" title="掘金" target="_blank">掘金</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://segmentfault.com/" title="segmentfault" target="_blank">segmentfault</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.jianshu.com/users/1cbb94e5ed4d/latest_articles" title="简书" target="_blank">简书</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://home.cnblogs.com/" title="博客园" target="_blank">博客园</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://www.awesomes.cn/" title="Awesomes" target="_blank">Awesomes</a>
                </li>
              
            </ul>
          </div>
        

      </section>

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2016</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Hongqin Ma</span>
</div>

<div class="powered-by">
  Powered by <a class="theme-link" href="https://hexo.io">Hexo</a>
</div>

<div class="theme-info">
  Theme -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Muse
  </a>
</div>

<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<span id="busuanzi_container_site_pv">
    &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;Page Views: <span id="busuanzi_value_site_pv"></span> 
</span>

        

<div class="busuanzi-count">

  <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv"><i class="fa fa-user"></i><span class="busuanzi-value" id="busuanzi_value_site_uv"></span></span>
  

  
    <span class="site-pv"><i class="fa fa-eye"></i><span class="busuanzi-value" id="busuanzi_value_site_pv"></span></span>
  
  
</div>



        
      </div>
    </footer>

    <div class="back-to-top">
      <i class="fa fa-arrow-up"></i>
    </div>
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  



  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.0.2"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.0.2"></script>



  
  

  

  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.0.2"></script>



  

  
    
  

  <script type="text/javascript">
    var duoshuoQuery = {short_name:"Hiraku"};
    (function() {
      var ds = document.createElement('script');
      ds.type = 'text/javascript';ds.async = true;
      ds.id = 'duoshuo-script';
      ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
      ds.charset = 'UTF-8';
      (document.getElementsByTagName('head')[0]
      || document.getElementsByTagName('body')[0]).appendChild(ds);
    })();
  </script>

  
    
    <script src="/lib/ua-parser-js/dist/ua-parser.min.js?v=0.7.9"></script>
    <script src="/js/src/hook-duoshuo.js"></script>
  






  
  

  

  

  
  <script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
  <script>AV.initialize("PPmoIQxeu8Sd21h6Tl9TthNx-gzGzoHsz", "rTvbY2H7DvWzRipiBwn72RQ4");</script>
  <script>
    function showTime(Counter) {
      var query = new AV.Query(Counter);
      var entries = [];
      var $visitors = $(".leancloud_visitors");

      $visitors.each(function () {
        entries.push( $(this).attr("id").trim() );
      });

      query.containedIn('url', entries);
      query.find()
        .done(function (results) {
          var COUNT_CONTAINER_REF = '.leancloud-visitors-count';

          if (results.length === 0) {
            $visitors.find(COUNT_CONTAINER_REF).text(0);
            return;
          }

          for (var i = 0; i < results.length; i++) {
            var item = results[i];
            var url = item.get('url');
            var time = item.get('time');
            var element = document.getElementById(url);

            $(element).find(COUNT_CONTAINER_REF).text(time);
          }
          for(var i = 0; i < entries.length; i++) {
            var url = entries[i];
            var element = document.getElementById(url);
            var countSpan = $(element).find(COUNT_CONTAINER_REF);
            if( countSpan.text() == '') {
              countSpan.text(0);
            }
          }
        })
        .fail(function (object, error) {
          console.log("Error: " + error.code + " " + error.message);
        });
    }

    function addCount(Counter) {
      var $visitors = $(".leancloud_visitors");
      var url = $visitors.attr('id').trim();
      var title = $visitors.attr('data-flag-title').trim();
      var query = new AV.Query(Counter);

      query.equalTo("url", url);
      query.find({
        success: function(results) {
          if (results.length > 0) {
            var counter = results[0];
            counter.fetchWhenSave(true);
            counter.increment("time");
            counter.save(null, {
              success: function(counter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(counter.get('time'));
              },
              error: function(counter, error) {
                console.log('Failed to save Visitor num, with error message: ' + error.message);
              }
            });
          } else {
            var newcounter = new Counter();
            /* Set ACL */
            var acl = new AV.ACL();
            acl.setPublicReadAccess(true);
            acl.setPublicWriteAccess(true);
            newcounter.setACL(acl);
            /* End Set ACL */
            newcounter.set("title", title);
            newcounter.set("url", url);
            newcounter.set("time", 1);
            newcounter.save(null, {
              success: function(newcounter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(newcounter.get('time'));
              },
              error: function(newcounter, error) {
                console.log('Failed to create');
              }
            });
          }
        },
        error: function(error) {
          console.log('Error:' + error.code + " " + error.message);
        }
      });
    }

    $(function() {
      var Counter = AV.Object.extend("Counter");
      if ($('.leancloud_visitors').length == 1) {
        addCount(Counter);
      } else if ($('.post-title-link').length > 1) {
        showTime(Counter);
      }
    });
  </script>



  

  

  
  
  <!-- custom analytics part create by xiamo -->
<script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
<script>AV.initialize("PPmoIQxeu8Sd21h6Tl9TthNx-gzGzoHsz", "rTvbY2H7DvWzRipiBwn72RQ4");</script>
<script>
function showTime(Counter) {
  var query = new AV.Query(Counter);
  $(".leancloud_visitors").each(function() {
    var url = $(this).attr("id").trim();
    query.equalTo("url", url);
    query.find({
      success: function(results) {
        if (results.length == 0) {
          var content = '0 ' + $(document.getElementById(url)).text();
          $(document.getElementById(url)).text(content);
          return;
        }
        for (var i = 0; i < results.length; i++) {
          var object = results[i];
          var content = object.get('time') + ' ' + $(document.getElementById(url)).text();
          $(document.getElementById(url)).text(content);
        }
      },
      error: function(object, error) {
        console.log("Error: " + error.code + " " + error.message);
      }
    });

  });
}

function addCount(Counter) {
  var Counter = AV.Object.extend("Counter");
  url = $(".leancloud_visitors").attr('id').trim();
  title = $(".leancloud_visitors").attr('data-flag-title').trim();
  var query = new AV.Query(Counter);
  query.equalTo("url", url);
  query.find({
    success: function(results) {
      if (results.length > 0) {
        var counter = results[0];
        counter.fetchWhenSave(true);
        counter.increment("time");
        counter.save(null, {
          success: function(counter) {
            var content =  counter.get('time') + ' ' + $(document.getElementById(url)).text();
            $(document.getElementById(url)).text(content);
          },
          error: function(counter, error) {
            console.log('Failed to save Visitor num, with error message: ' + error.message);
          }
        });
      } else {
        var newcounter = new Counter();
        newcounter.set("title", title);
        newcounter.set("url", url);
        newcounter.set("time", 1);
        newcounter.save(null, {
          success: function(newcounter) {
              console.log("newcounter.get('time')="+newcounter.get('time'));
            var content = newcounter.get('time') + ' ' + $(document.getElementById(url)).text();
            $(document.getElementById(url)).text(content);
          },
          error: function(newcounter, error) {
            console.log('Failed to create');
          }
        });
      }
    },
    error: function(error) {
      console.log('Error:' + error.code + " " + error.message);
    }
  });
}
$(function() {
  var Counter = AV.Object.extend("Counter");
  if ($('.leancloud_visitors').length == 1) {
    addCount(Counter);
  } else if ($('.post-title-link').length > 1) {
    showTime(Counter);
  }
}); 
</script>

  
</body>
</html>
